<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>底部导航</title>
    <link rel="stylesheet" href="../basestyle.css">
    <link rel="stylesheet" href="./tbbar.css">
    <link rel="stylesheet" href="../badge/badge.css">
</head>
<body>
<div class="page js_show">
    <div class="page__bd" style="height: 100%;">
        <div class="tab">
            <div class="tab__panel">

            </div>
            <div class="tabbar">
                <a href="javascript:;" class="tabbar__item bar__item_on">
                    <span style="display: inline-block;position: relative;">
                        <img src="../images/icon_tabbar.png" alt="" class="tabbar__icon">
                        <span class="badge" style="position: absolute;top: -2px;right: -13px;">8</span>
                    </span>
                    <p class="tabbar__label">微信</p>
                </a>

                <a href="javascript:;" class="tabbar__item">
                    <img src="../images/icon_tabbar.png" alt="" class="tabbar__icon">
                    <p class="tabbar__label">通讯录</p>
                </a>

                <a href="javascript:;" class="tabbar__item">
                    <span style="display: inline-block;position: relative;">
                        <img src="../images/icon_tabbar.png" alt="" class="tabbar__icon">
                        <span class="badge badge_dot" style="position: absolute;top: 0;right: -6px;"></span>
                    </span>
                    <p class="tabbar__label">发现</p>
                </a>

                <a href="javascript:;" class="tabbar__item">
                    <img src="../images/icon_tabbar.png" alt="" class="tabbar__icon">
                    <p class="tabbar__label">我</p>
                </a>

            </div>
        </div>
    </div>
</div>
<script src="../zepto.min.js"></script>
<script>
    $(".tabbar__item").click(function () {
        $(this).addClass("bar__item_on").siblings().removeClass("bar__item_on");
    })
</script>
</body>
</html>